//
//  AudioRecorderViewController.h
//  ALittleReminder
//
//  Created by George on 15/11/2011.
//

#import <UIKit/UIKit.h>
enum ViewState;

@interface AudioRecorderViewController : UIViewController<AVAudioPlayerDelegate>
@property (unsafe_unretained, nonatomic) IBOutlet UIButton *removeSoundButten;
@property (unsafe_unretained, nonatomic) IBOutlet UISlider *progessSlider;

@property (unsafe_unretained, nonatomic) IBOutlet UIButton *playOrPauseButten;
@property (unsafe_unretained, nonatomic) IBOutlet UIButton *recordOrStopButten;
- (id)initWithAlert:(AlertManagedObject *)alert;

- (IBAction)onRemoveSound:(id)sender;
- (IBAction)onPlayOrPause:(id)sender;
- (IBAction)onRecordOrStop:(id)sender;
- (void)changeStateTo:(enum ViewState) nextState;
- (void)stopAll;
- (void) creatAudioPlayer;
- (IBAction)onDone:(id)sender;



@end
